import { _decorator, Component, Node } from 'cc';
import { EffectBase,JokerEffectData } from '../Card/EffectBase';
const { ccclass, property } = _decorator;

@ccclass('DoubleEffect')
export class DoubleEffect extends EffectBase {
    private static _doubleEffect:DoubleEffect=null;
    static get  instance(){
        if(!this._doubleEffect){
            this._doubleEffect=new DoubleEffect();
        }
        return this._doubleEffect;
    }
    public activateEffect(data: JokerEffectData){
        //如果传入是其他数据return
        if(!data.multiplier){
            return;
        }
        data.multiplier*=2;
    }
}


